#文件合并

file_unit_1_en = open("Unit1_P1_en.txt",'w', encoding="utf-8")
file_unit_1_ch = open("Unit1_P1_ch.txt", 'w', encoding="utf-8")


file_part_1 = open("L1.txt", encoding="utf-8")
file_part_2 = open("L2.txt", encoding="utf-8")
file_part_3 = open("L3.txt", encoding="utf-8")
file_part_4 = open("L4.txt", encoding="utf-8")
file_part_5 = open("L5.txt", encoding="utf-8")
file_part_6 = open("L6.txt", encoding="utf-8")
file_part_7 = open("L7.txt", encoding="utf-8")

list_part_1 = []
list_part_2 = []
list_part_3 = []
list_part_4 = []
list_part_5 = []
list_part_6 = []
list_part_7 = []
list_unit_1_ch = []
list_unit_1_en = []


for line in file_part_1.readlines():
    list_part_1.append("\""+line+"\",")
for line in file_part_2.readlines():
    list_part_2.append("\""+line+"\",")
for line in file_part_3.readlines():
    list_part_3.append("\""+line+"\",")
for line in file_part_4.readlines():
    list_part_4.append("\""+line+"\",")
for line in file_part_5.readlines():
    list_part_5.append("\""+line+"\",")
for line in file_part_6.readlines():
    list_part_6.append("\""+line+"\",")
for line in file_part_7.readlines():
    list_part_7.append("\""+line+"\",")


for i in range(0, 80, 2):
    
    file_unit_1_en.write(list_part_1[i])
    file_unit_1_ch.write(list_part_1[i+1])

    file_unit_1_en.write(list_part_2[i])
    file_unit_1_ch.write(list_part_2[i+1])

    file_unit_1_en.write(list_part_3[i])
    file_unit_1_ch.write(list_part_3[i+1])

    file_unit_1_en.write(list_part_4[i])
    file_unit_1_ch.write(list_part_4[i+1])

    file_unit_1_en.write(list_part_5[i])
    file_unit_1_ch.write(list_part_5[i+1])
    
    file_unit_1_en.write(list_part_6[i])
    file_unit_1_ch.write(list_part_6[i+1])

    file_unit_1_en.write(list_part_7[i])
    file_unit_1_ch.write(list_part_7[i+1])


file_unit_1_en.close()
file_unit_1_ch.close()
